using Gtk;
using System;
using System.IO;

namespace PNotebook
{


	[System.ComponentModel.ToolboxItem(true)]
	public partial class MiTextView : Gtk.Bin
	{

		public MiTextView ()
		{
			this.Build ();
			
			
		}
		
		public string FileName {get; set;}

		public void Save()
		{
			File.WriteAllText(FileName, textView.Buffer.Text);
		}
		
		public void Load()
		{
			textView.Buffer.Text = File.ReadAllText(FileName);
		}		
	}
}
